package piece2.chapter10;

public class Person {
    private Name name;

    public Person(Name name) {
	super();
	this.name = name;
    }

    public boolean equals(Object obj) {
	return name.equals(obj);
    }

    public Name getName() {
	return name;
    }

    public void setName(Name name) {
	this.name = name;
    }

    @Override
    public String toString() {
	return "Person [name=" + name + "]";
    }

    public int compareTo(Object[] objects) {
	return compareTo(objects);
    }

}
